package ch00.a11;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/13 0:24
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/13 0:24
 */
public class MachineCat extends Cat implements ChangeI {

    public MachineCat(String name) {
        super(name);
    }

    public MachineCat() {
    }

    public String changeThing(String thing) {
        return super.shout()+" 我有万能的口袋，我可变出："+ thing;
    }

    public static void main(String[] args) {
        MachineCat mcat = new MachineCat("叮铛");
        mcat.setShoutNum(8);
        ChangeI i = mcat;
        System.out.println(i.changeThing("各种各样的东西"));
        i = new MachineCat();
        System.out.println(i.changeThing("各种各样的东西"));
    }
}
